

package cn.shengchao.examstar.distribute.infrastrure.service;

import cn.shengchao.examstar.rpc.base.PageResult;
import cn.shengchao.examstar.distribute.infrastrure.po.DistributeContentInfo;
import cn.shengchao.examstar.rpc.distribute.dto.DistributeContentBatchDto;
import cn.shengchao.examstar.rpc.distribute.req.CourseDistributeQueryPage;
import cn.shengchao.examstar.rpc.distribute.req.CourseDistributeUserQueryPage;
import cn.shengchao.examstar.rpc.distribute.resp.CourseDistributeForUserRespEntity;
import cn.shengchao.examstar.rpc.distribute.resp.CourseDistributeRespEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface DistributeContentInfoService extends IService<DistributeContentInfo> {

    void registerNewProducts(DistributeContentBatchDto distributeContentBatchDto);

    PageResult<CourseDistributeRespEntity> getCourseDistributePageList(CourseDistributeQueryPage courseDistributeQueryPage);


    PageResult<CourseDistributeForUserRespEntity> getCourseDistributeForUserPageList(CourseDistributeUserQueryPage courseDistributeQueryPage);

    void clearProducts(DistributeContentBatchDto distributeContentBatchDto);

    Map<Long, String> checkContentPercent(DistributeContentBatchDto distributeContentBatchDto);
}
